﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
	CodeBehind="Login.aspx.cs" Inherits="ASPItalia.ModelVirtualCasting.MVC.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<h1>
	Area riservata</h>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<form runat="server">
	<asp:Login ID="LoginControl" runat="server" RenderOuterTable="false" PasswordRequiredErrorMessage="Password obbligatoria" UserNameRequiredErrorMessage="Username obbligatorio" RememberMeText="Ricordami" LoginButtonText="Login" FailureText="Impossibile effettuare il login">
		<LayoutTemplate>
			<h1>Accesso all'area riservata</h1>
			
			<div class="table">
				<div class="tr">
					<div class="td1">
						<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
					</div>
					<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
					<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Display="Dynamic"
						ErrorMessage="Username obbligatorio" ToolTip="Username obbligatorio" ValidationGroup="LoginControl">*</asp:RequiredFieldValidator>
				</div>
			</div>
			<div class="tr">
				<div class="td1">
					<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
				</div>
				<div class="td2">
					<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
					<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Display="Dynamic"
						ErrorMessage="Password obbligatoria" ToolTip="Password obbligatoria" ValidationGroup="LoginControl">*</asp:RequiredFieldValidator>
				</div>
			</div>
			<div class="tr">
				<asp:CheckBox ID="RememberMe" runat="server" Text="Ricordami" />
				<p>
					<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal></p>
				</p>
			</div>
			<div class="tr">
				<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="LoginControl" />
			</div>
			</div>
		</LayoutTemplate>
	</asp:Login>
	</form>
</asp:Content>
